﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BLevy.Negocio;

namespace BLevy.UI.Socios
{
    public partial class frmSociosABM : Form
    {
        public frmSociosABM()
        {
            InitializeComponent();
        }

        private void frmSociosABM_Load(object sender, EventArgs e)
        {
            this.Text = "Grupos Familiares ABM - Administración de Grupos Familiares";
            GetSocios();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmSocios frm = new frmSocios();
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }

        private void GetSocios()
        {
            dgvSocios.DataSource = Negocio.Socios.FindAll();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
